package loop;

public class For_Triangle_2 {
    public static void main ( String[] args ){
//        for (int i = 0 ; i < 5 ; i++){
//            for ( int k = 5 ; k >= i ; k--){
//                System.out.print( " " );
//            }
//            for ( int j = 0 ; j <= i ; j ++ ){
//                    System.out.print( "*" );
//            }
//            for ( int k = 0 ; k <i ; k++ ){
//                System.out.print( "*" );
//            }
//            System.out.println();
//        }
        for (int i = 0 ; i < 5 ; i++){
            for ( int k = 5 ; k >= i ; k--){
                System.out.print( " " );
            }
            for ( int j = 0 ; j <= i ; j ++ ){
                System.out.print( " *" );
            }

            System.out.println();
        }
    }
}
